// P2740 write by cn_ryh